package com.voe.common;

/** degree of bandwidth reduction
 */
public enum VadModes {
	kVadConventional(0),
	/** lowest reduction
	 */
	kVadAggressiveLow(1),
	kVadAggressiveMid(2),
	/** highest reduction
	 */
	kVadAggressiveHigh(3); 

	
	public static VadModes fromValue(int value) {
		for (int i=0;i<VadModes.values().length;i++) {
			if(VadModes.values()[i].getValue() == value)
				return VadModes.values()[i];
		}
		return null;
	}
	
	/**
	 * Constructor.
	 */
	private VadModes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
